package com.bsoft.gol.hcs.enumcase;

/**
 * 随访状态枚举
 *
 * @author neoLin - 2022/05/20 15:04
 **/
public enum FollowUpStatusEnum {
    //随访状态 0未随访 1 已随访 2 待确认 3已取消 9 已终止

    READY((byte) 0),
    FINISH((byte) 1),
    UN_CONFIRM((byte) 2),
    CANCEL((byte) 3),
    SUSPEND((byte) 9);

    private byte status;

    public static FollowUpStatusEnum getByStatus(byte status) {
        FollowUpStatusEnum[] values = FollowUpStatusEnum.values();
        for (FollowUpStatusEnum e : values) {
            if (e.getStatus() == status) {
                return e;
            }
        }
        return null;
    }

    FollowUpStatusEnum(byte status) {
        this.status = status;
    }

    public byte getStatus() {
        return status;
    }
}
